﻿@model JadeX.HtmlMarkupMinifier.ViewModels.IndexViewModel

@{
    Layout.Title = T("Html Minifier Settings - Exclusions");
}

@using (Html.BeginFormAntiForgeryPost())
{
    @Html.ValidationSummary()

    <fieldset>
        <legend>@T("Exclusions")</legend>
        <div>
            @Html.EditorFor(m => m.ExcludeAdmin)
            <label class="forcheckbox" for="@Html.FieldIdFor(m => m.ExcludeAdmin)">@T("Exclude administration")</label>
            <span class="hint">@T("Minification can sometimes create faulty markup (mostly because of invalid input) benefit might not be worth rendering issues for admins. <strong>Default: True</strong>")</span>
        </div>
        <div>
            @Html.EditorFor(m => m.ExcludeAuthenticated)
            <label class="forcheckbox" for="@Html.FieldIdFor(m => m.ExcludeAuthenticated)">@T("Exclude authenticated users")</label>
            <span class="hint">@T("Authenticated users are excluded from Output caching, thus every response has to be minified individualy. Disabling exclusion may negatively impact CPU usage and response times under heavy load. <strong>Default: True</strong>")</span>
        </div>
        <div>
            @Html.EditorFor(m => m.HaltOnWarnings)
            <label class="forcheckbox" for="@Html.FieldIdFor(m => m.HaltOnWarnings)">@T("Halt on warnings")</label>
            <span class="hint">@T("Don't use minified content if process threw warnings (warning message will also be logged). <strong>Default: False</strong>")</span>
        </div>
            <label>@T("Ignored urls")</label>
            @Html.TextAreaFor(m => m.IgnoredUrls, new { @class = "text medium" })
            <span class="hint">@T("This must be a set of relative paths, e.g., /, /About. Please ensure that you enter only one path per line.")</span>
            <span class="hint">@T("You can add comments by starting the line with #.")</span>
    </fieldset>
    
    <button class="primaryAction" type="submit">@T("Save")</button>
}